package com.deer.wms.base.system.dao;

import com.deer.wms.base.system.model.SubinventoryTransferRecord;
import com.deer.wms.base.system.model.SubinventoryTransferRecordCriteria;
import com.deer.wms.base.system.model.SubinventoryTransferRecordDto;
import com.deer.wms.common.core.commonMapper.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubinventoryTransferRecordMapper extends Mapper<SubinventoryTransferRecord> {
    /**
     * 条件查询
     * @param criteria
     * @return
     */
    List<SubinventoryTransferRecordDto> findList(SubinventoryTransferRecordCriteria criteria);

    /**
     * 根据ID查询
     * @param transferId
     * @return
     */
    SubinventoryTransferRecord findTransferRecordBytransferId(Integer transferId);

    /**
     * 根据ID删除单行
     * @param transferId
     * @return
     */
    int delectTransferRecordByTransferId(Integer transferId);

    /**
     * 批量删除
     * @param transferIds
     * @return
     */
    int delectTransferRecordByTransferIds(String[] transferIds);

    /**
     * 修改
     * @param SubinventoryTransferRecord
     * @return
     */
    int UpdateTransferRecord(SubinventoryTransferRecord SubinventoryTransferRecord);

    /**
     * 新增
     * @param SubinventoryTransferRecord
     */
    int SaveTransferRecord(SubinventoryTransferRecord SubinventoryTransferRecord);


    /**
     *
     * 查询出库记录
     *
     * @return
     */
    public List<SubinventoryTransferRecord> selectSubinventoryTransferRecordList(SubinventoryTransferRecord subinventoryTransferRecord);
}